/*
 * This file is part of the AzerothCore Project. See AUTHORS file for Copyright information
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Affero General Public License as published by the
 * Free Software Foundation; either version 3 of the License, or (at your
 * option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef DEF_NEXUS_H
#define DEF_NEXUS_H

#include "CreatureAIImpl.h"
#include "GameEventMgr.h"
#include "GridNotifiers.h"
#include "PassiveAI.h"
#include "Player.h"
#include "SpellAuras.h"
#include "SpellScript.h"

#define DataHeader "NEX"

#define NexusScriptName "instance_nexus"

enum eTypes
{
    DATA_MAGUS_TELESTRA_EVENT       = 0,
    DATA_ANOMALUS_EVENT             = 1,
    DATA_ORMOROK_EVENT              = 2,
    DATA_KERISTRASZA_EVENT          = 3,
    DATA_COMMANDER_EVENT            = 4,
    DATA_TELESTRA_ORB               = 5,
    DATA_ANOMALUS_ORB               = 6,
    DATA_ORMOROK_ORB                = 7,
    MAX_ENCOUNTERS                  = 8
};

enum Npcs
{
    NPC_ALLIANCE_RANGER             = 26802,
    NPC_ALLIANCE_BERSERKER          = 26800,
    NPC_ALLIANCE_COMMANDER          = 27949,
    NPC_ALLIANCE_CLERIC             = 26805,
    NPC_HORDE_RANGER                = 26801,
    NPC_HORDE_BERSERKER             = 26799,
    NPC_HORDE_COMMANDER             = 27947,
    NPC_HORDE_CLERIC                = 26803,

    NPC_COMMANDER_STOUTBEARD        = 26796,
    NPC_COMMANDER_KOLURG            = 26798,

    GO_TELESTRA_SPHERE              = 188526,
    GO_ANOMALUS_SPHERE              = 188527,
    GO_ORMOROK_SPHERE               = 188528
};

template <class AI, class T>
inline AI* GetNexusAI(T* obj)
{
    return GetInstanceAI<AI>(obj, NexusScriptName);
}

#endif
